<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/fn.tld" prefix="fn" %>
<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tld/core.tld" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBliC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath %>"/>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<link href="orderManager/css/login.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/script/My97DatePicker/WdatePicker.js"></script>
</head>

<body>
<form action="" method="post">
<div id="page-container">
	  <div id="content"><div class="p16"><DIV class="tb-1">
  <table width="760" height="37">
	<tr>
		<td width="248" height="31" class="tdl">
		  <label>订单开始时间：</label>
		  <input id="startDate" size="15" name="startDate" class="Wdate" readonly="readonly" onfocus="WdatePicker({isShowWeek:true,maxDate:'%y-%M-%d'})" value="${order.startDate }" readonly="readonly"/>		</td>
		<td width="246" class="tdl"><label>订单结束时间：</label>
		  <input id="endDate" size="15" name="endDate" class="Wdate" readonly="readonly" onfocus="WdatePicker({isShowWeek:true,maxDate:'%y-%M-%d',minDate:'#F{$dp.$D(\'startDate\')}'})" value="${order.endDate }" readonly="readonly"/></td>
		<td width="183" class="tdl"><label>状态：
		    <select id="select" name="select">
              <option value="">全部</option>
              <option value="0">处理中</option>
              <option value="1">等待支付</option>
              <option value="2">充值完成</option>
               <option value="3">部分充值</option>
              <option value="4">充值失败</option>
            </select>
            <script type="text/javascript">
<!--		
			var state=${order.lastState};
			if(state!=-9){
			document.getElementById('select').value=state;
			}
//-->
</script>
		</label></td>
	    <td width="63" class="tdl"><button class="button2" id="J_SearchOrders" type="submit">
		搜索</button></td>
	</tr>
	<!-- add -->
</table>
      </DIV></div>
	  <div id="listbb">
	  <div align="center">
        <table class="tablet" cellspacing="1" cellpadding="3" border="0">
          <tr>
            <td class="tdt" height="31"><div class="ddba">商品名称</div>
              <div class="ddbh">商品种类</div>
              <div class="ddba">订单号</div>
              <div class="ddbh">手机号码</div>
			  <div class="ddbh">交易时间</div>
              <div class="ttbb">单价</div>
              <div class="ttbh">充值面额</div>
              <div class="ttbh">订单状态</div>
              <div class="ttbb" style="display: none">操作</div></td>
          </tr>
          <logic:iterate id="order" name="orders">
	          <tr>
	            <td width="731" height="31">
				<table cellpadding="0" cellspacing="0" width="740">
	                <tr>
	                  <td class="tdl" align="center" width="117" height="31"><a href="javascript:void(0);" class="ck">${order.prodInfo}${order.proPrice}元</a></td>
	                  <td  width="87">直充-快充</td>
	                  <td class="tdi" width="107"><a href="#" class="ck">${order.orderid}</a></td>
	                  <td class="tdi" width="92"><span class="STYLE5">${order.phonenum}</span></td>
	                  <td class="tdi" width="83"><bean:write name="order" property="dateTime" format="yyyy-MM-dd"/><br />
	                  <bean:write name="order" property="dateTime" format="HH:mm:ss"/></td>
	                  <td class="tdi" width="49">¥${order.salePrice}</td>
	                  <td class="STYLE1" width="68">¥${order.proPrice}</td>
	                  <td class="tkcg" width="67">
	                  <c:if test="${order.lastState==0}">处理中</c:if>
	                  <c:if test="${order.lastState==1}"><font style="color: green"><b>等待支付</b></font></c:if>
	                  <c:if test="${order.lastState==2}"><font  class="ck">充值完成</font></c:if>
	                  <c:if test="${order.lastState==3}"><font style="color: black"><b>部分充值</b></font></c:if>
	                  <c:if test="${order.lastState==4}"><font style="color: color">充值失败</font></c:if>
	                  </td>
	                  <td class="tdi" width="68"><a class="ck" href="javascript:void(0);" style="display: none">查看详细</a></td>
	                </tr>
	            </table></td>
	          </tr>
          </logic:iterate>
	    </table>
      </div>
	</div>
	  <div id="xm">
	   <div class="sabrosus">
  	    	<select name="page" onchange="javascript:document.forms[0].submit();">
  	    	<c:forEach var="t" begin="1" end="${page.totalPage}">
  	    	<option value="${t}" 
  	    	<c:if test="${page.pageIndex==t}">
  	    		selected="selected"
  	    	</c:if>
  	    	> 第${t}页</option>
			</c:forEach>
  	    	</select>
  	    </div>
	  <div id="hbfk"></div>
  	  <!-- <div class="sabrosus"><span class="disabled">首页</span><span class="current">1</span><a href="#?page=2">2</a><a href="#?page=3">3</a>...<a href="#?page=199">下一页</a><a href="#?page=2">尾页</a><span class="abc">到第
  	    <input id="J_PageNum"  class="xminput" name="pageNum" />
  	    页
  	    <input name="Submit23" type="submit" class="buttonss" value="确定" />
  	    </span></div> -->
	  </div>
	</div>
</div>
</form>
	</body>
</html>